import Vue from "vue";
import Router from "vue-router";
import com from "@/components/test/com.vue";
import Home from "@/components/home/home.vue";
import News from "@/components/news/news.vue";
// import News2 from '@/components/news copy/news.vue'
import part1 from "@/components/news/components/part";
import part2 from "@/components/news/components/part2";
import part3 from "@/components/news/components/part3";
import part4 from "@/components/news/components/part4";
import part5 from "@/components/news/components/part5";
import current from "@/components/current/index";
import Policy from "@/components/Policy/index.vue";
import standard from "@/components/standard/index";
import Search from "../components/search/search.vue";
import a from "@/components/standard/components/a.vue";
import b from "@/components/standard/components/b.vue";
import c from "@/components/standard/components/c.vue";
import d from "@/components/standard/components/d.vue";
import input1 from "@/components/search/components/input";
import input2 from "@/components/search/components/input1";
import input3 from "@/components/search/components/input2";
import input4 from "@/components/search/components/input3";
import content1 from "@/components/infomation/content1";
import content2 from "@/components/infomation/content2";
import content3 from "@/components/infomation/content3";
import content4 from "@/components/infomation/content4";
import checked from "@/components/search/components/check";
import current0 from "@/components/current/components/current0";
import current1 from "@/components/current/components/current1";
import current2 from "@/components/current/components/current2";
import current3 from "@/components/current/components/current3";
import current4 from "@/components/current/components/current4";
import current5 from "@/components/current/components/current5";
import red1 from "@/components/redNews/part1";
import red2 from "@/components/redNews/part2";
import test from "@/components/test/test";
Vue.use(Router);
/* eslint-disable */
export default new Router({
  routes: [
    {
      path: "/",
      name: "Home",
      component: Home
    },
    {
      path: "/news",
      component: News,
      children: [
        {
          path: "part1",
          name: "part1",
          component: part1,
          alias: ""
        },
        {
          path: "part2",
          name: "part2",
          component: part2
        },
        {
          path: "part3",
          name: "part3",
          component: part3
        },
        {
          path: "part4",
          name: "part4",
          component: part4
        },
        {
          path: "part5",
          name: "part5",
          component: part5
        }
      ]
    },

    {
      path: "/red1",
      component: red1
    },
    {
      path: "/red2",
      component: red2
    },
    // {
    //   path: '/news2',
    //   component: News2
    // },

    //新闻速览
    {
      path: "/infomation/news1",
      component: content1
    },
    {
      path: "/infomation/news2",
      component: content2
    },
    {
      path: "/infomation/news3",
      component: content3
    },
    {
      path: "/infomation/news4",
      component: content4
    },
    {
      // 嵌套子路由
      path: "/search",
      name: "search",
      component: Search,
      children: [
        {
          path: "input1",
          name: "input1",
          alias: "",
          component: input1
        },
        {
          path: "input2",
          name: "input2",
          component: input2
        },
        {
          path: "input3",
          name: "input3",
          component: input3
        },
        {
          path: "input4",
          name: "input4",
          component: input4
        },
        {
          path: "checked",
          name: "checked",
          component: checked
        }
      ]
    },
    {
      path: "/policy",
      name: "pilicy",
      component: Policy
    },
    {
      path: "/standard",
      component: standard,
      children: [
        {
          path: "a",
          alias: "", // 配置别名 默认选中
          name: "a",
          component: a
        },
        {
          path: "b",
          name: "b",
          component: b
        },
        {
          path: "c",
          name: "c",
          component: c
        },
        {
          path: "d",
          name: "d",
          component: d
        }
      ]
    },
    {
      path: "/com",
      name: "com",
      component: com
    },
    {
      path: "/current",
      component: current,
      name: "current",
      children: [
        {
          path: "current0",
          name: "current0",
          alias: "",
          component: current0
        },
        {
          path: "current1",
          name: "current1",
          component: current1
        },
        {
          path: "current2",
          name: "current2",
          component: current2
        },
        {
          path: "current3",
          name: "current3",
          component: current3
        },
        {
          path: "current4",
          name: "current4",
          component: current4
        },
        {
          path: "current5",
          name: "current5",
          component: current5
        }
      ]
    },
    {
      path: "/test",
      component: test,
      name: "test"
    }
  ]
});
